Give\Donations\Repositories\DonationRepository A

Total Complexity 58
Dependencies 15
Dependents 3
Total lines 583
Lines of code 317
Logical lines of code 130
Comment lines 148
Methods 26
Properties 2

Methods 26

Method Rating Maintainability Complexity Lines of code
getCoreDonationMetaForDatabase()
A
39 11 61
validateDonation()
A
57 9 16
insert()
S
45 6 41
update()
S
50 3 28
delete()
S
56 2 19
getPersistedDonationStatus()
S
71 3 6
prepareQuery()
S
58 1 17
getDefaultDonationMode()
S
75 2 4
deriveLegacyDonationParentId()
S
78 2 3
getSequentialId()
S
68 2 7
getFormTitle()
S
66 2 9
queryBySubscriptionId()
S
60 1 14
queryByDonorId()
S
62 1 12
getTotalDonationCountByDonorId()
S
63 1 12
queryByReceiptId()
S
64 1 11
queryByGatewayTransactionId()
S
64 1 11
getAllDonationIdsByDonorId()
S
65 1 10
getFirstDonation()
S
72 1 6
__construct()
S
80 1 3
getById()
S
74 1 5
getByReceiptId()
S
80 1 3
getBySubscriptionId()
S
80 1 3
queryById()
S
76 1 4
getTotalDonationCountByGatewayTransactionId()
S
80 1 3
getByGatewayTransactionId()
S
80 1 3
getLatestDonation()
S
72 1 6